﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LeaveMessage.aspx.cs" Inherits="UserBackGround_CheckInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
    <link href="../Css/StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div align="right"><asp:Label ID="lblPageSum" runat="server" Style="left: 428px; top: 23px;" ></asp:Label>
                    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            CellPadding="3" ForeColor="#333333" GridLines="None" Height="1px" OnPageIndexChanging="GridView1_PageIndexChanging"
            OnRowDataBound="GridView1_RowDataBound" OnRowDeleting="GridView1_RowDeleting" AllowSorting="true" OnSorting="sorted"
            Width="550px" PageSize="24">
            <PagerSettings FirstPageText="第一页" LastPageText="末一页" Mode="NextPreviousFirstLast"
                NextPageText="下一页" PreviousPageText="上一页" />
            <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            <Columns>
                            
                            <asp:BoundField DataField="title" HeaderText="留言标题" SortExpression="title">
                                <ItemStyle Width="100px" HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            
                            <asp:BoundField DataField="name" HeaderText="联系人" SortExpression="name">
                                <ItemStyle Width="70px" HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                             <asp:BoundField DataField="tel" HeaderText="电话" SortExpression="tel">
                                <ItemStyle Width="80px" HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            
                            <asp:BoundField DataField="email" HeaderText="邮箱" SortExpression="email">
                                <ItemStyle Width="120px" HorizontalAlign="Left" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                                     
                            <asp:BoundField DataField="time" HeaderText="留言时间" SortExpression="time">
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="100px" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="isread" HeaderText="已经查看" SortExpression="isread">
                                <HeaderStyle HorizontalAlign="Left" />
                                <ItemStyle Width="100px" HorizontalAlign="Left" />
                            </asp:BoundField>
                           
                            
                            
                            <asp:HyperLinkField Text="查看" DataNavigateUrlFields="id" 
                            DataNavigateUrlFormatString="LMdetail.aspx?id={0}" Target="_self" ControlStyle-Width="40px">
                            <ItemStyle Width="60px" HorizontalAlign="Right" />
                                
                          </asp:HyperLinkField >
                            <asp:CommandField  DeleteText="删除" ShowDeleteButton="True">
                                <ItemStyle Width="60px" HorizontalAlign="Left" />
                    <HeaderStyle HorizontalAlign="Left" />
                            </asp:CommandField>
                        </Columns>
                        <RowStyle BackColor="#E3EAEB" />
                        <EditRowStyle BackColor="#7C6F57" />
                        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="False" ForeColor="#333333" />
                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                
    </div>
    </form>
</body>
</html>
